package cn.iocoder.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author : chenyumao
 * @description :HTTP请求日志表的PO对象
 * @date : 2025-09-23
 */
@Data
@TableName("http_request_log")
public class HttpRequestLog implements Serializable {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    @Schema(description = "请求参数")
    private String requestData;

    @Schema(description = "返回参数")
    private String responseData;

    @Schema(description = "关键参数")
    private String keyword;

    @Schema(description = "url")
    private String url;

    @Schema(description = "http状态码")
    private Integer httpStatus;

    @Schema(description = "逻辑删除标识（0：未删除，1：已删除）")
    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;

    @Schema(description = "创建人")
    private String createdBy;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "更新人")
    private String updatedBy;

    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;
}
